namespace Trust.Casas.Model.Migrations
{
    using System;
    using System.Data.Entity;
    using System.Data.Entity.Migrations;
    using System.Linq;
    using Trust.Casas.Model.Entities;

    internal sealed class Configuration : DbMigrationsConfiguration<Trust.Casas.Model.TrustContext>
    {
        public Configuration()
        {
            AutomaticMigrationsEnabled = false;
        }

        protected override void Seed(Trust.Casas.Model.TrustContext context)
        {
            BuildingType.Initialize(context.BuildingTypes);
            Region.Initialize(context.Regions);
            context.SaveChanges();
        }
    }
}
